package terminal.utility;

import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JFrame;

public class Utility {

    public static void setCenter(JFrame window) {
        Dimension screensize = Toolkit.getDefaultToolkit().getScreenSize();
        window.setLocation((screensize.width - window.getWidth()) / 2,
                (screensize.height - window.getHeight()) / 2);
    }
}
